package com.ophiux.utils.exception;

/**
 * 异常信息基类
 */
public class OphiuxBaseException extends Exception{

	//异常编码
	private String exceptionCode;
	//异常信息
	private String exceptionMessage;
	
	public OphiuxBaseException(){
		
	}
	
	public OphiuxBaseException(String _exceptionMessage){
		super(_exceptionMessage);
		this.exceptionMessage = _exceptionMessage;
	}
	
	public OphiuxBaseException(String _exceptionMessage,Throwable cause){
		super(_exceptionMessage, cause);
		this.exceptionMessage = _exceptionMessage;
	}
	
	public OphiuxBaseException(Throwable cause){
		super(cause);
		this.exceptionMessage = cause.getLocalizedMessage();
	}
	
	public OphiuxBaseException(String _exceptionCode,String _exceptionMessage){
		super(_exceptionCode+":"+_exceptionMessage);
		this.exceptionCode = _exceptionCode;
		this.exceptionMessage = _exceptionMessage;
	}
	
	
	public String getExceptionCode() {
		return exceptionCode;
	}
	public void setExceptionCode(String exceptionCode) {
		this.exceptionCode = exceptionCode;
	}
	public String getExceptionMessage() {
		return exceptionMessage;
	}
	public void setExceptionMessage(String exceptionMessage) {
		this.exceptionMessage = exceptionMessage;
	}
		
	
}
